package com.work.dto;

/**
 * 商品类
 */
public class Goods {
    private int gid;
    private String name;
    private String type;
    private double price;
    //库存

    public Goods() {
    }

    public Goods(int gid, String name, String type, double price) {
        this.gid = gid;
        this.name = name;
        this.type = type;
        this.price = price;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "gid=" + gid +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                '}';
    }
}
